﻿namespace ControleRepresentante.Logic.Models.Maps
{
    public class PermissaoMap : MapBase<Permissao>
    {
        public PermissaoMap()
        {
            Map(x => x.Area)
                .CustomType(typeof (Area))
                .Not.Nullable();
            Map(x => x.Operacao)
                .CustomType(typeof (Operacao))
                .Not.Nullable();
            References(x => x.User)
                .Not.Nullable();
        }
    }
}